package com.ssh.action.login;

import com.ssh.action.BaseAction;

public class LoginAction extends BaseAction {

	/**
	 *
	 */
	private static final long serialVersionUID = -424685424414880431L;

	private String result;
	private String weiboContent;
	
	/**
	 * @return the result
	 */
	public String getResult() {
		return result;
	}
	/**
	 * @param result the result to set
	 */
	public void setResult(String result) {
		this.result = result;
	}
	
	/**
	 * @return the weiboContent
	 */
	public String getWeiboContent() {
		return weiboContent;
	}
	/**
	 * @param weiboContent the weiboContent to set
	 */
	public void setWeiboContent(String weiboContent) {
		this.weiboContent = weiboContent;
	}
	
	@Override
	public String execute() throws Exception {
		/*new InitialContext();
		if("aaa".equals(getUsername()) && "aaa".equals(getPassword())) {
			ActionContext.getContext().getSession().put("user", getUsername());
			return SUCCESS;
		} else {
			return ERROR;
		}*/
		
		//JSONArray json = JSONArray.fromObject(this.user);
		this.result = "用户信息 :";
		return SUCCESS;
	}
	
}
